GetPromptResult

@Serializable
class GetPromptResult(val description: String?, val messages: List<PromptMessage>, val _meta: JsonObject = EmptyJsonObject) : ServerResult(source)

The server's response to a prompts/get request from the client.

Constructors

Link copied to clipboard
constructor(description: String?, messages: List<PromptMessage>, _meta: JsonObject = EmptyJsonObject)

Properties

Link copied to clipboard
open override val _meta: JsonObject

The protocol reserves this result property to allow clients and servers to attach additional metadata to their responses.

Link copied to clipboard

An optional description for the prompt.

Link copied to clipboard